﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Silverlight_Client.Commands_Utils;

namespace Silverlight_Client.ViewModels
{
    public class SelectedManagementItemVM : IViewModelBase
    {

        #region Fields

        private String      _title;
        private ICommand    _titlecmd;
        private bool        _isupdatechecked, _isdeletechecked;

        #endregion

        #region Properties

        public String Title
        {
            get { return _title; }
            set
            {
                if (_title == value) return;
                _title = value;
                RaisePropertyChanged("Title");

            }
        }
        public bool IsUpdateChecked
        {
            get { return _isupdatechecked; }
            set
            {
                if (_isupdatechecked == value) return;
                _isupdatechecked = value;
                RaisePropertyChanged("IsUpdateChecked");

            }
        }
        public bool IsDeleteChecked
        {
            get { return _isdeletechecked; }
            set
            {
                if (_isdeletechecked == value) return;
                _isdeletechecked = value;
                RaisePropertyChanged("IsDeleteChecked");

            }
        }

        #endregion

        #region Commands
        
        #endregion

        public ICommand TitleCmd
        {
            get { return _titlecmd; }
        }

        #region Commands Functions

        public void TitleFunc()
        {

        }

        #endregion

        #region Functions
        
        #endregion

        #region Ctor

        public SelectedManagementItemVM(String title)
        {
            _title = String.Empty;
            _titlecmd = new RelayCommand(TitleFunc) { IsEnabled = true };
            _isupdatechecked = _isdeletechecked = false;
        }

        #endregion
    }
}
